package com.bitrate.dagger.restful.code;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 定义系统产生的代码。
 *
 */
@Getter
@AllArgsConstructor
public enum SystemCode implements ResponseCode {

	SUCCESS(200, "请求成功"), 
	SUCCESS_NOTICE(201, "请求成功"), 
	FAIL(-1, "请求失败"), 
	PARAMS_ERROR(-1,"参数缺失"),
	NOT_LOGIN(109, "没有登录"),
	;

	private Integer code;

	private String msg;

	public Integer code() {
		return this.code;
	}

	public String msg() {
		return this.msg;
	}
}
